package com.meilai.project.service.personal.mission;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.dto.personal.mission.MissionDTO;
import com.meilai.project.dto.personal.mission.MissionOperatorSearchDTO;
import com.meilai.project.dto.personal.mission.MissionSearchDTO;
import com.meilai.project.entity.personal.mission.Mission;
import com.meilai.project.vo.personal.mission.MissionOperatorVO;
import com.meilai.project.vo.personal.mission.MissionVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张驰
 * @since 2022-03-24
 */
public interface MissionService extends IService<Mission> {
    // 分页
    Page<MissionVO> selectPageList(Integer current_page, Integer page_size,
                                   MissionSearchDTO dto);

    Page<MissionVO> selectMyMissionList(Integer current_page, Integer page_size,
                                   MissionSearchDTO dto);

    Page<MissionOperatorVO> selectTodoMissionList(Integer current_page, Integer page_size,
                                                  MissionOperatorSearchDTO dto);

    // 新增
    boolean addOne(MissionDTO dto);

    // 编辑
    boolean editOne(MissionDTO dto);

    // 删除
    boolean del(List<Long> ids);

    // 关闭
    boolean off(List<Long> ids);

    // 完成
    boolean complete(List<Long> ids);

    boolean operatorComplete(List<Long> ids, String complete_memo);
}
